<template>
  <CoachInfoView :coach-id="id"></CoachInfoView>
</template>

<script>
import CoachInfoView from "@/pages/school_home/CoachInfoView.vue";

export default {
  components: {
    CoachInfoView,
  },
  data() {
    return {
      id: null
    }
  },
  onShareAppMessage(shareOption) {
    console.log(shareOption);
    let path = '/pages/school_home/school_home'
    path += '?coachId=' + this.id

    return {
      title: "my title",
      channel: "video",
      extra: {
        hashtag_list: ["custom tag 1", "custom tag 2"],
        withVideoId: true,
        anchor: {
          anchorType: "app",
          title: '拍视频测试title',
          path,
        }
      },
      success: (res) => {
        console.log("分享成功");
        console.log(res);
      },
    };
  },
  onLoad({id}) {
    this.id = id
  },
  methods: {}
}
</script>

<style scoped>

</style>
